import Vue from 'vue'
import Router from 'vue-router'
import Index from './views/Index.vue';


Vue.use(Router)

export default new Router({
  routes: [
    // 首页
    { path: '/', component: Index },
    // 详情页
    { path: '/detail/:id', component: () => import('./views/Detail.vue') },
    // 忘记密码页
    { path: '/forgetPassword', component: () => import('./views/ForgetPassword.vue') },
    // 登录页
    { path: '/login', component: () => import('./views/Login.vue') },
    // 理财页
    { path: '/money', component: () => import('./views/Money.vue') },
    // 我的页
    { path: '/my', component: () => import('./views/My.vue') },
    // 预约页
    { path: '/order', component: () => import('./views/Order.vue') },
    // 注册页
    { path: '/register', component: () => import('./views/Register.vue') },
    // 新闻详细页
    { path: '/news/:id', component: () => import('./views/News.vue') },
    // 协议阅读页
    { path: '/protocol', component: () => import('./views/Protocol.vue') },
    // 二维码页
    { path: '/qrcode', component: () => import('./views/Qrcode.vue') },
    // 我的客户页
    { path: '/invitee', component: () => import('./views/Invitee.vue') },
    // 个人基本信息页
    { path: '/myprofile', component: () => import('./views/MyProfile.vue') },
    // 风险评测页
    { path: '/riskassessment', component: () => import('./views/RiskAssessment.vue') },
    // 积分兑换页
    { path: '/jifenproduct', component: () => import('./views/JifenProduct.vue') },
    // 设置页
    { path: '/setting', component: () => import('./views/Setting.vue') },
    // 关于页
    { path: '/about', component: () => import('./views/About.vue') },
    // 使用协议页
    { path: '/useragree', component: () => import('./views/UserAgree.vue') },
    // 关于我们页
    { path: '/aboutus', component: () => import('./views/AboutUs.vue') },
    // 个人信息下一页
    { path: '/myprofilenext', component: () => import('./views/MyProfileNext.vue') },
    // 默认路由
    { path: '*', component: Index }
  ]
})
